package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 销售信息对象 sys_prescriptions
 * 
 * @author jiashu
 * @date 2025-03-13
 */
public class SysPrescriptions extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long prescriptionId;

    /** 药品编号 */
    @Excel(name = "药品编号")
    private Long medicineId;

    /** 患者名称 */
    @Excel(name = "患者名称")
    private String patientName;

    /** 性别 */
    @Excel(name = "性别")
    private String gender;

    /** 电话 */
    @Excel(name = "电话")
    private String contactPhone;

    /** 住址 */
    @Excel(name = "住址")
    private String homeAddress;

    /** 开药的医生的id */
    @Excel(name = "开药的医生的id")
    private Long doctorId;

    /** 数量 */
    @Excel(name = "数量")
    private Double quantityPrescribed;

    /** 总价 */
    @Excel(name = "总价")
    private Double totalPrice;

    /** 是否归档 0是未归 1已归档 */
    @Excel(name = "是否归档 0是未归 1已归档")
    private String isArchived;

    public void setPrescriptionId(Long prescriptionId) 
    {
        this.prescriptionId = prescriptionId;
    }

    public Long getPrescriptionId() 
    {
        return prescriptionId;
    }
    public void setMedicineId(Long medicineId) 
    {
        this.medicineId = medicineId;
    }

    public Long getMedicineId() 
    {
        return medicineId;
    }
    public void setPatientName(String patientName) 
    {
        this.patientName = patientName;
    }

    public String getPatientName() 
    {
        return patientName;
    }
    public void setGender(String gender) 
    {
        this.gender = gender;
    }

    public String getGender() 
    {
        return gender;
    }
    public void setContactPhone(String contactPhone) 
    {
        this.contactPhone = contactPhone;
    }

    public String getContactPhone() 
    {
        return contactPhone;
    }
    public void setHomeAddress(String homeAddress) 
    {
        this.homeAddress = homeAddress;
    }

    public String getHomeAddress() 
    {
        return homeAddress;
    }
    public void setDoctorId(Long doctorId) 
    {
        this.doctorId = doctorId;
    }

    public Long getDoctorId() 
    {
        return doctorId;
    }
    public void setQuantityPrescribed(Double quantityPrescribed)
    {
        this.quantityPrescribed = quantityPrescribed;
    }

    public Double getQuantityPrescribed()
    {
        return quantityPrescribed;
    }
    public void setTotalPrice(Double totalPrice)
    {
        this.totalPrice = totalPrice;
    }

    public Double getTotalPrice()
    {
        return totalPrice;
    }
    public void setIsArchived(String isArchived) 
    {
        this.isArchived = isArchived;
    }

    public String getIsArchived() 
    {
        return isArchived;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("prescriptionId", getPrescriptionId())
            .append("medicineId", getMedicineId())
            .append("patientName", getPatientName())
            .append("gender", getGender())
            .append("contactPhone", getContactPhone())
            .append("homeAddress", getHomeAddress())
            .append("doctorId", getDoctorId())
            .append("quantityPrescribed", getQuantityPrescribed())
            .append("createTime", getCreateTime())
            .append("totalPrice", getTotalPrice())
            .append("isArchived", getIsArchived())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .append("createBy", getCreateBy())
            .toString();
    }
}
